package com.dayuan.service;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.dayuan.bean.Store;
import com.dayuan.dao.StoreMapper;

@Service
public class StoreService {
	private static Logger logger = LoggerFactory.getLogger(StoreService.class);

	@Resource
	private StoreMapper storeMapper;

	public Store selectByGoodId(Long goodId) {
		return storeMapper.selectByGoodId(goodId);

	}

	public Store selectByPrimaryKeyAndLock(Long id) {
		return storeMapper.selectByPrimaryKeyAndLock(id);
	}
	
	public int updateByPrimaryKeySelective(Store record){
		return storeMapper.updateByPrimaryKeySelective(record);
		
	}

}
